package com.gxa.community.core.pojo.domain.goodsdo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 商品分类
 * </p>
 *
 * @author gxa
 * @since 2022-07-18
 */
@Data
@TableName("goods_class")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "GoodsClass对象", description = "商品分类")
public class GoodsClass implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("所属分类id")
    private Integer pId;

    @ApiModelProperty("分类名称")
    private String name;

    @ApiModelProperty("排序序号")
    private Integer indexs;

    @ApiModelProperty("分类佣金 (具体金额, 存在多级时仅算位于底层分类的佣金)")
    private BigDecimal commission;

    @ApiModelProperty("图片地址")
    private String pic;

    @ApiModelProperty("状态 0禁用 1启用")
    private Integer status;

}
